package com.briup.cms.bean;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 *  文章
 * @author  wangzh@briup.com
 */
@Table(name="article")
@Data
@Entity
public class Article implements Serializable {
    @Id
    private String id;

    private String title;

    private String author;

    @Column(name = "publish_date")
    private Date publishDate;

    private String content;

    private Integer readCount;

    private String status;

    @Column(name = "category_id")
    private String categoryId;

    private String image;
    private static final long serialVersionUID = 1L;
}